package com.ujiuye.bean;

public class StudentBean {
    //与数据库student表中数据匹配
    private int sid;
    private String sname;
    private String sex;
    private int age;
    private String degree;
    private String pic ;
    private String mark;

    //创建有参数无参构造

    public StudentBean() {
    }

    public StudentBean(int sid, String sname, String sex, int age, String degree, String pic, String mark) {
        this.sid = sid;
        this.sname = sname;
        this.sex = sex;
        this.age = age;
        this.degree = degree;
        this.pic = pic;
        this.mark = mark;
    }

    public StudentBean(String sname, String sex, int age, String degree, String pic, String mark) {
        this.sname = sname;
        this.sex = sex;
        this.age = age;
        this.degree = degree;
        this.pic = pic;
        this.mark = mark;
    }

    //创建getset方法
    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getDegree() {
        return degree;
    }

    public void setDegree(String degree) {
        this.degree = degree;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }
}
